name: testsPCE run_id: commands[0] env HOME: /home/jenkins env LANG: C.UTF-8 env PATH: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/testsPCE/bin:/opt/pyenv/bin:/tmp/venv-nQ0v/bin:/opt/pyenv/shims:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin env PYTHONHASHSEED: 3812836079 env PIP_DISABLE_PIP_VERSION_CHECK: 1 env PYTHONIOENCODING: utf-8 env PIP_EXTRA_INDEX_URL: https://gitlab.com/api/v4/projects/33090323/packages/pypi/simple env TOX_ENV_NAME: testsPCE env TOX_WORK_DIR: /w/workspace/transportpce-tox-verify-transportpce-master/.tox env TOX_ENV_DIR: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/testsPCE env VIRTUAL_ENV: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/testsPCE metadata pid: 30668 cwd: /w/workspace/transportpce-tox-verify-transportpce-master/tests allow: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/testsPCE/bin/*:launch_tests.sh cmd: ./launch_tests.sh pce exit_code: 1 pytest -q transportpce_tests/pce/test01_pce.py .................... [100%] 20 passed in 109.17s (0:01:49) pytest -q transportpce_tests/pce/test02_pce_400G.py E.F.F.F.F [100%] ==================================== ERRORS ==================================== _____ ERROR at setup of TransportPCE400Gtesting.test_01_load_port_mapping ______ cls = @classmethod def setUpClass(cls): # pylint: disable=bare-except sample_files_parsed = False try: TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "honeynode-topo400G.json") with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: cls.topo_bi_dir_data = topo_bi_dir.read() OTN_TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "honeynode-otntopo400G.json") with open(OTN_TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as otn_topo_bi_dir: cls.otn_topo_bi_dir_data = otn_topo_bi_dir.read() OTUC4_OTN_TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "honeynode-otntopo400GwithOTUC4.json") with open(OTUC4_OTN_TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as otuc4_otn_topo_bi_dir: cls.otuc4_otn_topo_bi_dir_data = otuc4_otn_topo_bi_dir.read() ODUC4_OTN_TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "honeynode-otntopo400GwithODUC4.json") with open(ODUC4_OTN_TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as oduc4_otn_topo_bi_dir: cls.oduc4_otn_topo_bi_dir_data = oduc4_otn_topo_bi_dir.read() PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "pce_portmapping_71.json") with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: cls.port_mapping_data = port_mapping.read() sample_files_parsed = True except PermissionError as err: print("Permission Error when trying to read sample files\n", err) sys.exit(2) except FileNotFoundError as err: print("File Not found Error when trying to read sample files\n", err) sys.exit(2) except: print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) sys.exit(2) finally: if sample_files_parsed: print("sample files content loaded") > cls.processes = test_utils.start_tpce() transportpce_tests/pce/test02_pce_400G.py:100: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def start_tpce(): if 'NO_ODL_STARTUP' in os.environ: print('No OpenDaylight instance to start!') return [] print('starting OpenDaylight...') if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': process = start_lighty() else: process = start_karaf() if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): print('OpenDaylight started !') else: print('OpenDaylight failed to start !') shutdown_process(process) for pid in process_list: shutdown_process(pid) > sys.exit(1) E SystemExit: 1 transportpce_tests/common/test_utils.py:225: SystemExit ---------------------------- Captured stdout setup ----------------------------- sample files content loaded starting OpenDaylight... starting KARAF TransportPCE build... Searching for patterns in karaf.log... Pattern not found after 100 seconds! OpenDaylight failed to start ! =================================== FAILURES =================================== ________ TransportPCE400Gtesting.test_03_path_computation_400G_xpdr_bi _________ self = def test_03_path_computation_400G_xpdr_bi(self): response = test_utils.transportpce_api_rpc_request('transportpce-pce', 'path-computation-request', self.path_computation_input_data) > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/pce/test02_pce_400G.py:135: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_03_path_computation_400G_xpdr_bi ________ TransportPCE400Gtesting.test_05_path_computation_OTUC4_xpdr_bi ________ self = def test_05_path_computation_OTUC4_xpdr_bi(self): self.path_computation_input_data["service-name"] = "service-OTUC4" self.path_computation_input_data["service-a-end"]["service-format"] = "OTU" self.path_computation_input_data["service-a-end"]["tx-direction"] =\ {"port": {"port-device-name": "XPDR-A2-XPDR2"}} self.path_computation_input_data["service-z-end"]["service-format"] = "OTU" self.path_computation_input_data["service-z-end"]["tx-direction"] =\ {"port": {"port-device-name": "XPDR-C2-XPDR2"}} response = test_utils.transportpce_api_rpc_request('transportpce-pce', 'path-computation-request', self.path_computation_input_data) > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/pce/test02_pce_400G.py:180: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_05_path_computation_OTUC4_xpdr_bi ________ TransportPCE400Gtesting.test_07_path_computation_ODUC4_xpdr_bi ________ self = def test_07_path_computation_ODUC4_xpdr_bi(self): self.path_computation_input_data["service-name"] = "service-ODUC4" self.path_computation_input_data["service-a-end"]["service-format"] = "ODU" self.path_computation_input_data["service-a-end"]["tx-direction"] = \ {"port": {"port-device-name": "XPDR-A2-XPDR2"}} self.path_computation_input_data["service-z-end"]["service-format"] = "ODU" self.path_computation_input_data["service-z-end"]["tx-direction"] = \ {"port": {"port-device-name": "XPDR-C2-XPDR2"}} response = test_utils.transportpce_api_rpc_request('transportpce-pce', 'path-computation-request', self.path_computation_input_data) > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/pce/test02_pce_400G.py:225: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_07_path_computation_ODUC4_xpdr_bi ________ TransportPCE400Gtesting.test_09_path_computation_100G_xpdr_bi _________ self = def test_09_path_computation_100G_xpdr_bi(self): self.path_computation_input_data["service-name"] = "service-100GE" self.path_computation_input_data["service-a-end"]["service-rate"] = "100" self.path_computation_input_data["service-a-end"]["service-format"] = "Ethernet" self.path_computation_input_data["service-a-end"]["tx-direction"] = \ {"port": {"port-device-name": "XPDR-A2-XPDR2", "port-name": "XPDR2-CLIENT1"}} self.path_computation_input_data["service-z-end"]["service-rate"] = "100" self.path_computation_input_data["service-z-end"]["service-format"] = "Ethernet" self.path_computation_input_data["service-z-end"]["tx-direction"] = \ {"port": {"port-device-name": "XPDR-C2-XPDR2", "port-name": "XPDR2-CLIENT1"}} self.path_computation_input_data["service-z-end"]["service-format"] = "ODU" response = test_utils.transportpce_api_rpc_request('transportpce-pce', 'path-computation-request', self.path_computation_input_data) > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/pce/test02_pce_400G.py:263: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_09_path_computation_100G_xpdr_bi --------------------------- Captured stdout teardown --------------------------- all processes killed =========================== short test summary info ============================ FAILED transportpce_tests/pce/test02_pce_400G.py::TransportPCE400Gtesting::test_03_path_computation_400G_xpdr_bi FAILED transportpce_tests/pce/test02_pce_400G.py::TransportPCE400Gtesting::test_05_path_computation_OTUC4_xpdr_bi FAILED transportpce_tests/pce/test02_pce_400G.py::TransportPCE400Gtesting::test_07_path_computation_ODUC4_xpdr_bi FAILED transportpce_tests/pce/test02_pce_400G.py::TransportPCE400Gtesting::test_09_path_computation_100G_xpdr_bi ERROR transportpce_tests/pce/test02_pce_400G.py::TransportPCE400Gtesting::test_01_load_port_mapping 4 failed, 4 passed, 1 error in 128.76s (0:02:08)